using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bird : MonoBehaviour
{
    public float time = 0.7f;
    public float offsetY = 50f;

    // Start is called before the first frame update
    void Start()
    {
        transform.DOMove(transform.position - new Vector3(0, offsetY, 0), time).SetLoops(-1, LoopType.Yoyo);
    }
}